package com.softdev.service;

import com.softdev.common.R;
import com.softdev.dto.UserDto;
import com.softdev.pojo.User;
import org.springframework.data.domain.Page;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

public interface UserService {

    String login(String username , String password, HttpServletRequest request);

    R<String> logout(HttpServletRequest request, HttpServletResponse response);

    User get();

    boolean update(User user);

    boolean add(UserDto userDto);

    Page<User> page(int page , int size , Long[] skillIds);

}
